<?php
/**
 * Created by PhpStorm.
 * User: 38339
 * Date: 2021-05-21
 * Time: 17:33
 */

namespace app\common\validate;


use think\Validate;

class YwProjectSubmitRecord extends Validate
{

    protected $rule = [
        'zip_str'  => 'require',
        'remark'  => 'require'
    ];

    protected $message  =   [
        'zip_str.require'  => '请上传压缩文件',
        'remark.require'  => '请输入备注描述'
    ];

    protected $scene = [
        'edit'  =>  ['zip_str','id','remark'],
        'add'  => ['zip_str','remark'],
    ];

}